package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class JsonChatBean implements Serializable,IJsonParser{

	/**{
  "data": {
    "created_date": "03-23 14:31",
    "content": "654321",
    "from_actor": {
      "avatar": null,
      "display_name": "Dizzy",
      "actor_id": 100000056
    },
    "actor_conversation": {
      "display_name": "Dizzy",
      "avatar": null,
      "actor_conversation_id": 19,
      "new_message_count": 15,
      "conversation_id": 4,
      "last_message": {
        "attachment_type": 0,
        "content": "654321",
        "attachments": [
          
        ]
      }
    },
    "actor_conversation_id": 19,
    "created_time_group": 1.427092275351241E9,
    "created_time_group_name": "03-23 14:31",
    "message_id": 1329,
    "attachments": [
      
    ],
    "attachment_type": 0,
    "created_time": 1.427092275351241E9,
    "from_self": false
  },
  "status": 0
}
	 * 
	 */
	private static final long serialVersionUID = 1246345964435960317L;
	private ChatBean data ;
	private int status ;
	public ChatBean getData() {
		return data;
	}
	public int getStatus() {
		return status;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, JsonChatBean.class);
		}
		return null;
	}

}
